﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Vega.USiteBuilder;
using SPCFMedicineInformer.DocumentTypes.Base;
using SPCFMedicineInformer.DocumentTypes;
using SPCFMedicineInformer.Members;

namespace SPCFMedicineInformer.UserControls
{
    public partial class AdminHeaderMenu : System.Web.UI.UserControl
    {
        public FrontPage FrontPageDoc
        {
            get { return NodeLocator.GetNodeOfExactType<FrontPage>(); }
        }

        protected void Page_Load(object sender, EventArgs e)
        {
                        
        }

        protected void LinkButtonLogout_Click(object sender, EventArgs e)
        {
            MemberHelper.LogoutFormsAuthentication();
            var redirecUrl = NodeLocator.GetNodesOfExactType<AdminSite>().First().Url;
            Response.Redirect(redirecUrl);
        }
    }
}